package com.ilomed.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@Table(name = "goal")
@NamedQueries( { @NamedQuery(name = "Goal.findAll", query = "Select g from Goal g") })
@XmlRootElement(name="TODOLIST")
@XmlAccessorType(XmlAccessType.FIELD)
public class Goal {

	@Id
	@GeneratedValue
	@Column(name = "id")
	private Long id;

	@Column(name = "minutes")
	private int minutes;

	public Long getId() {
		System.out.println("id="+id);
		return id;
	}

	public int getMinutes() {
		System.out.println("minutes="+minutes);
		return minutes;
	}

	public void setId(Long id) {
		System.out.println("id="+id);
		this.id = id;
	}

	public void setMinutes(int minutes) {
		System.out.println("minutes="+minutes);
		this.minutes = minutes;
	}
}
